function navigateTo(url) {
  var _cPg = getCurrentPages();
  var _cPgSt = _cPg[_cPg.length - 1].route;

  wx.navigateTo({
    url: url,
  })
  return;
  if (getCurrentPages().length >= 10) {
    if(_cPgSt == "pages/index/index"){
      return false;
    }
    wx.redirectTo({
      url: url,
      success: function (res) { }, //可根据实际情况删减
      fail: function (res) { }, //可根据实际情况删减
      complete: function (res) { }, //可根据实际情况删减
    })
  } else {
    wx.navigateTo({
      url: url,
    })
  }
}
module.exports = navigateTo